package com.itheima.bigevent.mapper;

import com.itheima.bigevent.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author curry
* @description 针对表【category】的数据库操作Mapper
* @createDate 2024-08-18 16:12:47
* @Entity com.itheima.bigevent.pojo.Category
*/
@Mapper
public interface CategoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectByUserId(@Param("id") Integer id);

    List<Category> selectAll();
}
